import request from '@/utils/request'

// 查询抄码信息列表
export function listCmFactory(query) {
  return request({
    url: '/system/cmFactory/list',
    method: 'get',
    params: query
  })
}

// 查询抄码信息详细
export function getCmFactory(id) {
  return request({
    url: '/system/cmFactory/' + id,
    method: 'get'
  })
}

// 新增抄码信息
export function addCmFactory(data) {
  return request({
    url: '/system/cmFactory',
    method: 'post',
    data: data
  })
}

// 修改抄码信息
export function updateCmFactory(data) {
  return request({
    url: '/system/cmFactory',
    method: 'put',
    data: data
  })
}

// 删除抄码信息
export function delCmFactory(id) {
  return request({
    url: '/system/cmFactory/' + id,
    method: 'delete'
  })
}
